package com.base.cn.platform.os.service.manage.statistics.users;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 用户统计接口
 *
 * @author s.li
 * @date 2019/04/30
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface UsersStatisticsService extends BaseService {

    /**
     * 用户趋势看板数据
     * @param dateQueryCondition 查询时间条件
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/queryUserTrendBoard")
    Map<String,Object> queryUserTrendBoard(@RequestBody Map<String, Object> dateQueryCondition);

    /**
     * 查询付款用户概况数据
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/queryPayUserCountData")
    Map<String,Object> queryPayUserCountData(@RequestParam("date") String date);

    /**
     * 查询用户注册来源统计数据
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/queryUserRegFormCountData")
    Map<String,Object> queryUserRegFormCountData();
}
